ihelpuoo.namespace("ihelpuoo.widget.rich");

ihelpuoo.widget.rich.FontSizeView = function(gasket,name,editor)
{
	this.editor = editor
	this.view = new ihelpuoo.widget.drop
				.DropView2(gasket,name,"wares.pattern.rich.fontsize.Shell",null,this.onClick,this.drawSub);
	this.view.parent = this;
	this.list = new Array();
	this.list.push("SIZE 1");
	this.list.push("SIZE 2");
	this.list.push("SIZE 3");
	this.list.push("SIZE 4");
	this.list.push("SIZE 5");
	this.list.push("SIZE 6");
	this.list.push("SIZE 7");
}

ihelpuoo.widget.rich.FontSizeView.prototype
=
{
	draw: function()
	{
		this.view.draw(this.list,0);
	}
	
	,
	drawSub: function(v,index)
	{
		v.set("text",this.list[index]);
		return true;
	}
	
	,
	onClick: function(v,index)
	{
		//alert("FontSize"+(index+1));
		window.editor.document.execCommand("FontSize",false,"7");
		return true;
	}
	
	// <WEBOO:INHERIT extends="ihelpuoo.widget.View">
	,hide: function(){this.view.hide();}
	// </WEBOO:INHERIT>
}